﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CSF.BusinessCore.Data;
using CSF.MultiLang.Data;

namespace CSF.Products.Data
{
    public enum ProductPartType
    {
        /// <summary>
        /// (可定制的)商品
        /// </summary>
        Product = 0,
        /// <summary>
        /// 布料、基础材质
        /// </summary>
        Material = 1,
        /// <summary>
        /// 配件
        /// </summary>
        Part = 2,
        /// <summary>
        /// 服务
        /// </summary>
        Service = 3,
    }

    /// <summary>
    /// Author: Robin
    /// Create Date: 2011-9-9
    /// 产品类型
    /// </summary>
    public class ProductType : MlTransactionConfig
    {
        /// <summary>
        /// Web Shop Id
        /// </summary>
        public int ApplicationId { get; set; }

        /// <summary>
        /// 是否可以销售
        /// </summary>
        public bool IsSalable { get; set; }

        /// <summary>
        /// 配件类型
        /// </summary>
        public ProductPartType PartType { get; set; }

        /// <summary>
        /// 是否要计算最低运费
        /// </summary>
        public bool IsMinFreight { get; set; }

        /// <summary>
        ///  最低运费
        /// </summary>
        public decimal? MinFreight { get; set; }
    }
}
